import json
import requests

url = "http://127.0.0.1:18332"
auth = ("username", "password")
payload = json.dumps({"method": 'omni_listblockstransactions', "params": [0,1000000]})

response = requests.request("POST", url, data=payload, auth=auth)
print(response.text)
